﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
using DevExpress.Web.ASPxEditors;

public partial class PromotionInfo_EditGiveCoup :   System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void LSMDSourceMainProPromotion_Selecting(object sender, DevExpress.Data.Linq.LinqServerModeDataSourceSelectEventArgs e)
    {
        string cxbh = "";
        if (Request.QueryString["id"] != null)
        {
            cxbh = Request.QueryString["id"].ToString();
        }
        //string cxbh = "C000000001";
        DataClassesDataContext lqdb = new DataClassesDataContext();
        e.QueryableSource = lqdb.css_sp_coup.Where(o => o.cxbh == cxbh);

    }
}